<?php
namespace logic\sys\editor;
/**
 * 百度编辑器处理类
 */
class Ueditor{
    
    public function __construct(){
        
    }
    
    public function run($action){
        
    }
    
    /**
     * 获取配置
     */
    public function config(){
        $result = \logic\sys\editor\UeditorConfig::get();
        return $result;
    }
    
    /**
     * 上传图片
     */
    public function uploadimage(){
        $type = 'editor';
        $Upload = new \logic\sys\Upload();
        $result = $Upload->images($type);  
        return array(
            "state" => 'SUCCESS',
            "url"   => $result['filehttp'],
            "title" => '',
            "original"  => '',
            "type"      => '',
            "size"      => '',
        );
    }
}